'use strict';

// import * as moment from 'moment';

// export function relativeTime(time) {
//   return moment(new Date(time * 1000)).fromNow();
// };

export function domain (url) {
  return url && url.split('/')[2];
};

export function isIOS() {
  const iosReg = /iphone|ipad|ipod/i;
  // return iosReg.test(this.get('user-agent'));
  return true
};